<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: LENOVO
  Date: 2018/6/5
  Time: 10:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="/doFind" method="post">
    学号:<input type="text" name="studyId"><br/>
    班级:<input type="text" name="classname">
    <input type="submit" value="查询"/>
</form>
<c:forEach items="${cs}" var="c">
<table border="1px" style="float: left">
    <tr>
        <th>学号</th>
        <th>学院</th>
        <th>班级</th>
        <th>姓名</th>
    </tr>

        <tr>
            <td>${c.studyId}</td>
            <td>${c.school}</td>
            <td>${c.classname}</td>
            <td>${c.name}</td>
        </tr>

</table>
<table border="1px">
    <tr>
        <th>书名</th>
        <th>作者</th>
        <th>出版社</th>
        <th>借书时间</th>
        <th>还书时间</th>
    </tr>
            <c:forEach items="${c.borrowInfo}" var="b">
                <tr>
                <td>${b.bookname}</td>
                <td>${b.author}</td>
                <td>${b.publish}</td>
                    <td>${b.borrowtime}</td>
                    <td>${b.backtime}</td>
                </tr>
            </c:forEach>
</table>
</c:forEach>
</body>
</html>
